package com.example.design_pattern.state;

import com.example.design_pattern.exception.WallEntryException;

/**
 * 环境对象
 */
public class WallEntry {

    private WallState mWallState;

    public void spell(String spellContent) throws WallEntryException {
        mWallState.spell(this, spellContent);
    }

    public void pass() throws WallEntryException {
        mWallState.pass(this);
    }

    public WallState getmWallState() {
        return mWallState;
    }

    public void setmWallState(WallState mWallState) {
        this.mWallState = mWallState;
    }
}
